<!doctype html>
<html>
	<head>
		<meta charset="utf-8" />
		<title>Simple Examples</title>
		<style>
			form {
				margin: 0;
			}
			textarea {
				display: block;
			}
		</style>
                 <script type="text/javascript" src="/js/jquery-1.4.2.min.js"></script>
		<script charset="utf-8" src="/js/kindeditor/kindeditor-min.js"></script>
		<script charset="utf-8" src="/js/kindeditor/lang/zh_TW.js"></script>
		<script>
			var editor;
			KindEditor.ready(function(K) {
				editor = K.create('textarea[name="content"]', {
					resizeType : 1,
                                        autoHeightMode : true,
                                        afterCreate : function() {
						this.loadPlugin('autoheight');
					},
                                        afterBlur:function(){this.sync();},
                                        langType : 'zh_TW',
					allowPreviewEmoticons : false,
                                       // afterBlur:function(){this.sync();},
					allowImageUpload : true,
                                        
					items : [
						'undo','redo','preview','selectall','fontname', 'fontsize', '|', 'forecolor', 'hilitecolor', 'bold', 'italic', 'underline',
						'removeformat',  '|', 'emoticons', 'image','multiimage','fullscreen']
				});
			});
		</script>
	</head>
	<body>
		
		<form method="post" action="/productTest.php?action=test"  name='form1' id='form1'> 
			<textarea name="content" style="width:700px;height:200px;visibility:hidden;">KindEditor</textarea>
                        <input type="text"  value="" name="ttt">
                        
                        
                        <input type="hidden" value="1" name="is_submit">
		</form>
            
             <a class="btn_box btn_r_box" href="javascript:void(0);" onclick="$('#form1').submit();">遞交</a>
             
            
             
	</body>
</html>
